﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Benchmark.Core.Communication.Model;
using Tcp.Performance.Toolkit.HubClient;

namespace HubClient1
{
   

    public class program {

        
          static void Main(string[] args)
        {
           
            
              var client = new HubClient();
            Console.WriteLine("Enter the server IP");
            string serverNAme = args[0];
            //string pipeNAme = "\\\\" + serverNAme + "\\pipe\\" + "test123";
            string pipeNAme = "test123";
            Console.WriteLine("Connectin @ "+ pipeNAme);
            client.StartHubClient(pipeNAme);

            bool isfinish = false;

            while (isfinish!=true)
            {
                isfinish = client.PutPipeInListenMode<HelloWorldModel>();
            }


        Console.WriteLine( "Operation completed ..Press a key to exit and start new instance");

        Console.ReadKey();
        }

    } 
}
